FROM node:latest

WORKDIR /app

ENV NODE_ENV production

COPY package.json /app

RUN npm install

COPY . /app

RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone

CMD ["npm","run","serve"]